package com.wanxi.education.mapper;

import com.wanxi.education.model.vo.user.UserVO;
import org.apache.ibatis.annotations.Param;

/**
 * @Author: Kang
 * @Date: 2021/9/28 10:15
 * @Description: 登录持久层
 * @Version: 1.0
 */
public interface LoginMapper {

    /**
     * @param phone 登录手机号码
     * @param state 0:管理员 1：机构负责人 2：学员
     * @return
     */
    UserVO findByPhone(@Param("phone") String phone, @Param("state") Integer state);

    Integer changePasswordByPhone(@Param("phone") String phone, @Param("password") String password);
}
